<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../day13/jquery-3.6.0.min.js"></script>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        .wrap {
            width: 1100px;
            height: 600px;
            border: 1px solid #000;
            margin: 10px;
            position: relative;
        }

        .wrap .box {
            width: 100px;
            height: 100px;
            background-color: #6ff;
            position: absolute;
        }
    </style>
</head>

<body>
    <button>start</button>
    <div class="wrap">
        <div class="box"></div>
    </div>
</body>
<script>
    //  $(ele),animate(params,speed,callback)
    //ele运动元素
    //params对象参数
    //speed运动速度
    //callback回调函数
    // 单属性运动
    // $("button").click(function () {
    //     $(".box").animate({ left: 1000 }, 2000, function () {
    //         console.log("运动完成");
    //     })
    // })


</script>

</html>